<?php

namespace App\Http\Controllers;

use App\Map1;
use Illuminate\Http\Request;

class Map1Controller extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function add()
    {
        $lng=isset($lng)?$lng:'';
        $lat=isset($lat)?$lat:'';
        $arr="http://api.map.baidu.com/geocoding/v3/?address='.$address.'&output=json&ak=cL0AA5pzmdzpQgF6gdcLE4BF0mEhP84Z&callback=showLocation";
        if($arr)
        {
            return redirect('you.php');
        }
        else{
            return redirect('add.blade.php');
        }
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        $msg="我是谁";
        $subject="3519396659@qq.com";
        Mail::send({


        })
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\Map1  $map1
     * @return \Illuminate\Http\Response
     */
    public function show(Map1 $map1)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Map1  $map1
     * @return \Illuminate\Http\Response
     */
    public function edit(Map1 $map1)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Map1  $map1
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, Map1 $map1)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\Map1  $map1
     * @return \Illuminate\Http\Response
     */
    public function destroy(Map1 $map1)
    {
        //
    }
}
